#ifndef __KSVEDITOR_CONTROLLER_KMAINCONTROLLER_H_
#define __KSVEDITOR_CONTROLLER_KMAINCONTROLLER_H_
#include <QObject>

#include "kexportshape.h"

class KMainWindow;
class KToolController;
class KDrawingController;
class KDrawSettingController;
class KFileController;

class KMainController:public QObject
{
	Q_OBJECT
public:
	explicit KMainController(KMainWindow* pView, QObject* parent = nullptr);
	~KMainController();

private:
	void connectToolToDrawing();
	void connectSettingToDrawing();
	void connectFileToDrawing();
	void connectFileToSetting();
	void init();

private:
	KMainWindow* m_pView = nullptr;
	KToolController* m_pToolController = nullptr;
	KDrawingController* m_pDrawingController = nullptr;
	KDrawSettingController* m_pSettingController = nullptr;
	KFileController* m_pFileController = nullptr;

};
#endif //__KSVEDITOR_CONTROLLER_KMAINCONTROLLER_H_